package mygreencart

import org.mygreencart.entities.Product

class ProductController {
   def productService
   List products

   static defaultAction = "list"


   def list() {

      products  = Product.list()


      /*  if (params.category) {
       validateUrl(params.category, null)
       } */
   }




   def boolean validateUrl(category, subcategory) {

      render("test productcontroller validateUrl")
   }
}
